/**
 *
 */
package com.angel.mocks.data.generator.daos.impl;

import java.io.Serializable;

import org.hibernate.criterion.Restrictions;

import com.angel.dao.generic.impl.GenericHibernateDAO;
import com.angel.mocks.data.generator.daos.UserDAO;
import com.angel.mocks.data.generator.domainObject.User;

/**
 * @author William
 *
 */
public class UserHibernateDAO extends GenericHibernateDAO<User, Serializable> implements UserDAO{

	public User findByName(String name) {
		return super.findUniqueBy(Restrictions.eq("name", name));
	}



}
